package com.rnkrsoft.suyan.config.server.config.dao;

import com.rnkrsoft.framework.orm.Pagination;
import com.rnkrsoft.framework.orm.jdbc.JdbcMapper;
import com.rnkrsoft.suyan.config.server.config.bo.QueryVersionInfoBO;
import com.rnkrsoft.suyan.config.server.config.entity.VersionInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by woate on 2018/6/17.
 */
public interface VersionInfoDAO extends JdbcMapper<VersionInfoEntity, String>{
    Pagination<QueryVersionInfoBO> selectPageVersion(Pagination<QueryVersionInfoBO> pagination);

    /**
     * 查询当前项目版本号依赖的项目的版本信息列表
     * @param version 当前版本号
     * @return
     */
    List<VersionInfoEntity> selectDependencyVersion(@Param("projectId") String projectId, @Param("version") String version);
}
